#ifndef _VIDEO_STREAM_H_
#define _VIDEO_STREAM_H_

#include "def.h"
#include "porting.h"
#include "_video.h"

VIDEO_ERROR video_stream_init();
VIDEO_ERROR video_stream_free();
VIDEO_ERROR video_stream_frame_out(FRAME* frame);

VIDEO_ERROR video_driver_open(int flag);//flag==1 decode; 0 encode
VIDEO_ERROR video_driver_start(int flag);
VIDEO_ERROR video_driver_close(int flag);
VIDEO_ERROR video_driver_pkg();
VIDEO_ERROR video_driver_frm();

int H264_GetAnnexbNALU(unsigned char* inBuf, int bufLen);

#endif
